package com.mm.fam.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName(value = "gw_node")
public class Node {
	// 未连接
	public static final Integer NODE_STATUS_DISCONNECTED = 0;
	// 已连接
	public static final Integer NODE_STATUS_CONNECTED = 1;

	@TableId(type = IdType.AUTO)
	private Integer nodeId;
	/**
	 * 状态 0:未连接  1:已连接
	 */
	private Integer status;
	/**
	 * token 采用uuid
	 */
	private String token;
	/**
	 * 描述
	 */
	private String description;
	/**
	 * 登录次数
	 */
	private Integer loginTimes;
	private String recentlySessionId;
	/**
	 * 最近登录地址
 	 */
	private String recentlyIpAddress;
	/**
	 * 最近登录端口
	 */
	private Integer recentlyPort;
	/**
	 * 最近登录时间
 	 */
	private String recentlyLoginTime;
	/**
	 * 最近登出时间
	 */
	private String recentlyLogoutTime;

	/**
	 * 容器Id
	 */
	private String containerId;

	/**
	 * 容器状态
	 */
	private int containerStatus;

	public Integer getNodeId() {
		return nodeId;
	}

	public void setNodeId(Integer nodeId) {
		this.nodeId = nodeId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getRecentlySessionId() {
		return recentlySessionId;
	}

	public void setRecentlySessionId(String recentlySessionId) {
		this.recentlySessionId = recentlySessionId;
	}

	public String getRecentlyIpAddress() {
		return recentlyIpAddress;
	}

	public void setRecentlyIpAddress(String recentlyIpAddress) {
		this.recentlyIpAddress = recentlyIpAddress;
	}

	public Integer getRecentlyPort() {
		return recentlyPort;
	}

	public void setRecentlyPort(Integer recentlyPort) {
		this.recentlyPort = recentlyPort;
	}

	public String getRecentlyLoginTime() {
		return recentlyLoginTime;
	}

	public void setRecentlyLoginTime(String recentlyLoginTime) {
		this.recentlyLoginTime = recentlyLoginTime;
	}

	public String getRecentlyLogoutTime() {
		return recentlyLogoutTime;
	}

	public void setRecentlyLogoutTime(String recentlyLogoutTime) {
		this.recentlyLogoutTime = recentlyLogoutTime;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getLoginTimes() {
		return loginTimes;
	}

	public void setLoginTimes(Integer loginTimes) {
		this.loginTimes = loginTimes;
	}

	public String getContainerId() {
		return containerId;
	}

	public void setContainerId(String containerId) {
		this.containerId = containerId;
	}

	public int getContainerStatus() {
		return containerStatus;
	}

	public void setContainerStatus(int containerStatus) {
		this.containerStatus = containerStatus;
	}
}
